package com.wq.proxy.jdk;

import java.util.Map;

/**
 * @Author: wangqiang20995
 * @Date:2018/9/27
 * @Description:
 * @Resource:
 */
public class DefaultCommonService implements CommonService {
    @Override
    public String postService(int type) {
        System.out.println("current class --> [" + this.getClass().getName() + "]");
        return "your request type is [" + type + "]";
    }

    @Override
    public void display(Map<String, Object> map) {
        System.out.println("current class --> [" + this.getClass().getName() + "]");
        Integer show = (Integer) map.get("type");
        System.out.println(this.postService(show));
    }
}
